package com.wanjia.order.server.entity;


import javax.persistence.Transient;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description  
 * @Author  zhulei
 * @Date 2022-06-15 
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserOrder  implements Serializable {


	/**
	 * 订单id
	 */
	@TableId(type = IdType.AUTO)
	private Integer userOrderId;

	/**
	 * 仓库id
	 */
	private Integer warehouseId;
	/**
	 * 订单状态
	 */
	private String start;

	/**
	 * 总价
	 */
	private BigDecimal total;

	/**
	 * 下单时间
	 */
	private Date orderTime;

	/**
	 * 发货时间
	 */
	private Date deliveryTime;

	/**
	 * 收货时间
	 */
	private Date receivingTime;

	/**
	 * 用户id
	 */
	private Integer userId;

	/**
	 * 订单编号
	 */
	private String orderCode;

	@Transient
	private String userName;

}
